<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>jQuery.isWindow(obj)</title>
<link type="text/css" rel="stylesheet" href="style/style.css" tppabs="http://www.erdangjiade.com/manual/jquery/jquery/style/style.css"  />
</head>
<body id="split">
<div id="content">
  
  <div rel="jQuery.isWindow">
    <h2><span>返回值:Boolean</span>jQuery.isWindow(obj)</h2>
    <h3>概述</h3>
    <div class="desc">
      <p> 测试对象是否是窗口（有可能是Frame）。</p>
    </div>
    <h3>参数</h3>
    <div>
      <h4><strong>obj</strong><span>Object</span><em>V1.4.3</em></h4>
      <p>用于测试是否为窗口的对象</p>
    </div>
    <div class="example">
      <h3>示例</h3>
      <span id="f_ad2"></span>
      <h4>描述:</h4>
      <p>测试是否为窗口</p>
      <p>&nbsp;</p>
      <p>jQuery 代码:</p>
      <PRE><CODE class="example demo-code">&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;script src="http://code.jquery.com/jquery-1.5.2.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
  Is 'window' a window? &lt;b&gt;&lt;/b&gt;
&lt;script&gt;$("b").append( "" + $.isWindow(window) );&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;
  </CODE></PRE>
    </div>
  </div>
</div>
</body>
</html>